package cn.teduo;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

public class dou27 {

}
@Target(ElementType.METHOD) //y元注解

@Retention(RetentionPolicy.SOURCE) //定义注解
@interface tt{
    int age() default 0;
}
//@tt
class T{

    String name;
    @tt
    public void eat(){

    }
}